<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // // 单分支语句
    // if (true) {
    //   console.log('执行语句')
    // }
    // if ('2' ==="2" ) {
    //   console.log('执行语句')
    // }
    if (2) {
      console.log('执行语句')
    }
    console.log('--------------')
  </script>
</body>

</html>